From f248b21b1bc6e7955544f219eed9abd779984d63 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 29 Apr 2014 06:21:11 -0400 Subject: [PATCH] widget-factory: Add a horizontal-buttons example Sadly, we don't have good icons for payment methods... --- demos/widget-factory/widget-factory.c | 7 ++++--- demos/widget-factory/widget-factory.ui | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c index 7404e59674..1e59b0d0ac 100644 --- a/demos/widget-factory/widget-factory.c +++ b/demos/widget-factory/widget-factory.c @@ -287,11 +287,12 @@ main (int argc, char *argv[]) { "about", activate_about, NULL, NULL, NULL }, { "quit", activate_quit, NULL, NULL, NULL }, - { "main", NULL, "s", "''", NULL }, + { "main", NULL, "s", "'steak'", NULL }, { "wine", NULL, NULL, "false", NULL }, { "beer", NULL, NULL, "false", NULL }, - { "water", NULL, NULL, "false", NULL }, - { "dessert", NULL, "s", "''", NULL } + { "water", NULL, NULL, "true", NULL }, + { "dessert", NULL, "s", "'bars'", NULL }, + { "pay", NULL, "s", NULL, NULL } }; gint status; diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui index cfe5905674..804556a47c 100644 --- a/demos/widget-factory/widget-factory.ui +++ b/demos/widget-factory/widget-factory.ui @@ -72,6 +72,27 @@ +
+ horizontal-buttons + + Cash + app.pay + cash + document-save-symbolic + + + Credit Card + app.pay + card + document-send-symbolic + + + Cheque + app.pay + cheque + document-save-as-symbolic + +
-- 2.30.2